#ifndef BOOK_H_
#define BOOK_H_

#include <string>
#include "StateMachine.h"

namespace lib {

  class Book : public StateMachine {
  public:
    void setId(const wchar_t* id);
    void setIsbn(const wchar_t* isbn);
    void setTitle(const wchar_t* title);

    std::wstring id() const;
    std::wstring isbn() const;
    std::wstring title() const;
    std::wstring to_string() const;

  private:
    std::wstring id_;
    std::wstring isbn_;
    std::wstring title_;
    static int   query_callback(void* arg, int n, wchar_t** vals, wchar_t** cols);
  };
}

#endif

